﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class mdc_Material_Formu : DataObject
    {
        [ID]
        [DID]
        public string ID { get { return _ID; } set { _ID = value; EntityState.FieldChange("ID"); } }
        private string _ID;
        public static FieldInfo id = new FieldInfo("mdc_Material_Formu", "ID");

        [Column]
        public string Process { get { return _Process; } set { _Process = value; EntityState.FieldChange("Process"); } }
        private string _Process;
        public static FieldInfo process = new FieldInfo("mdc_Material_Formu", "Process");

        [Column]
        public int Incident { get { return _Incident; } set { _Incident = value; EntityState.FieldChange("Incident"); } }
        private int _Incident;
        public static FieldInfo incident = new FieldInfo("mdc_Material_Formu", "Incident");

        [Column]
        public string UserName { get { return _UserName; } set { _UserName = value; EntityState.FieldChange("UserName"); } }
        private string _UserName;
        public static FieldInfo userName = new FieldInfo("mdc_Material_Formu", "UserName");

        [Column]
        public int No { get { return _No; } set { _No = value; EntityState.FieldChange("No"); } }
        private int _No;
        public static FieldInfo no = new FieldInfo("mdc_Material_Formu", "No");

        [Column]
        public string SAP_CODE { get { return _SAP_CODE; } set { _SAP_CODE = value; EntityState.FieldChange("SAP_CODE"); } } 
        private string _SAP_CODE; 
        public static FieldInfo sAP_CODE = new FieldInfo("mdc_Material_Formu", "SAP_CODE");

        [Column]
        public string SKU_BPCS_Code { get { return _SKU_BPCS_Code; } set { _SKU_BPCS_Code = value; EntityState.FieldChange("SKU_BPCS_Code"); } } 
        private string _SKU_BPCS_Code; 
        public static FieldInfo sKU_BPCS_Code = new FieldInfo("mdc_Material_Formu", "SKU_BPCS_Code");

        [Column]
        public string Description_EN { get { return _Description_EN; } set { _Description_EN = value; EntityState.FieldChange("Description_EN"); } } 
        private string _Description_EN; 
        public static FieldInfo description_EN = new FieldInfo("mdc_Material_Formu", "Description_EN");

        [Column]
        public string Description_ZH { get { return _Description_ZH; } set { _Description_ZH = value; EntityState.FieldChange("Description_ZH"); } } 
        private string _Description_ZH; 
        public static FieldInfo description_ZH = new FieldInfo("mdc_Material_Formu", "Description_ZH");

        [Column]
        public string Easy_Order_entry_Code { get { return _Easy_Order_entry_Code; } set { _Easy_Order_entry_Code = value; EntityState.FieldChange("Easy_Order_entry_Code"); } } 
        private string _Easy_Order_entry_Code; 
        public static FieldInfo easy_Order_entry_Code = new FieldInfo("mdc_Material_Formu", "Easy_Order_entry_Code");

        [Column]
        public string Density { get { return _Density; } set { _Density = value; EntityState.FieldChange("Density"); } } 
        private string _Density; 
        public static FieldInfo density = new FieldInfo("mdc_Material_Formu", "Density");

        [Column]
        public string New_SAP_Code { get { return _New_SAP_Code; } set { _New_SAP_Code = value; EntityState.FieldChange("New_SAP_Code"); } } 
        private string _New_SAP_Code; 
        public static FieldInfo new_SAP_Code = new FieldInfo("mdc_Material_Formu", "New_SAP_Code");

        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("mdc_Material_Formu", "Time");

        [Column]
        [DefaultInt(0)]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("mdc_Material_Formu", "Status");
    }
}
